package com.frank.demo.java.rmi;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

/**
 * Created by Administrator on 2018/10/14 0014.
 */
public class Client {
    public static void main(String[] args) throws RemoteException, NotBoundException, MalformedURLException {
        Hello h = (Hello)Naming.lookup("rmi://127.0.0.1:12312/Hello");
        System.out.println(h.sayHello("zx"));
    }
}
